package com.heima.wemedia.controller.v1;


import com.heima.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmLoginDto;
import com.heima.wemedia.service.WmUserService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 自媒体用户信息表 前端控制器
 * </p>
 *
 * @author QLJ
 * @since 2022-09-02
 */
@RestController
@RequestMapping("/login")
public class WmUserController {

    @Autowired
    private WmUserService wmUserService;


    /**
     * 自媒体登录
     */
    @PostMapping("/in")
    @ApiOperation("自媒体登录方法")
    public ResponseResult wmLogin(@RequestBody WmLoginDto wmLoginDto) {
        return wmUserService.wmLogin(wmLoginDto);
    }


}

